#include <stdio.h>
#include <string.h>

int main( void )
{
	int idx = 0;
	char string[10];
	char string1[10] = "2222222";
	char* str1="10234567899";
	

	printf("string addr[0x%x], string1 addr [0x%x] str1 add [0x%x].\n\n", string, string1, str1);

	printf("strlen %d sizeof %d\n",strlen(string), sizeof(string));
	strcpy(string, str1);
	printf("%s strlen %d sizeof %d\n", string, strlen(string), sizeof(string));

	while (1) {
		if (string[idx] == '\0') {
			printf("idx %d\n", idx);
			printf("string1 %s\n", string1);
			return 1;
		}

		idx++;
	}

	printf("%s\n", str1);

	return 1;
}
